import axios from './base'

export let $_checktoken = params => axios.get('/users/checktoken', {
    params
})
export let $_login = params => axios.post('/users/checkLogin', params)
export let $_addacount = params => axios.post('/users/add', params)
export let $_accountlist = params => axios.get('/users/list', {
    params
})
export let $_changeacc = params => axios.post('/users/edit', params)

export let $_delacc = params => axios.get('/users/del', {
    params
})
export let $_delAll = params => axios.get('/users/batchdel', {
    params
})
export let $_checkOpwd = params => axios.get('/users/checkoldpwd', {
    params
})
export let $_changePwd = params => axios.post('/users/editpwd', params)
export let $_accountinfo = params => axios.get('/users/accountinfo', {
    params
})